package com.ruoyi.room.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.dto.RoomPageBuildDTO;
import com.ruoyi.pojo.TbResidents;
import com.ruoyi.room.mapper.TbResidentsMapper;
import com.ruoyi.room.service.ITbResidentsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.vo.RoomPageBuildVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-08-29
 */
@Service
public class TbResidentsServiceImpl extends ServiceImpl<TbResidentsMapper, TbResidents> implements ITbResidentsService {

    @Autowired
    TbResidentsMapper tbResourcesMapper;
    @Override
    public Page<RoomPageBuildDTO> pageList(Integer pageNum, Integer pageSize, RoomPageBuildVO roomPageBuildVO) {
        Page<RoomPageBuildDTO> page = new Page<>(pageNum, pageSize);
        return tbResourcesMapper.pageList(page,roomPageBuildVO);
    }
}
